Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingest from Publisher side to track drop rate #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nreisch
Copy link
Collaborator

@nreisch nreisch commented Apr 25, 2023

No description provided.

ResourceAPIVersion: "v1",
ResourceKind: "Pod",
ResourceNamespace: "nginx",
ResourceName: "dywuperf-deployment-10kpods-69bd64c867-h2wdx",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we parameterize this? We can also suffix with violation count 1 to n being the total number of pods in the test.

ResourceKind: "Pod",
ResourceNamespace: "nginx",
ResourceName: "dywuperf-deployment-10kpods-69bd64c867-h2wdx",
ResourceLabels: map[string]string{"app": "dywuperf-app-100kpods", "pod-template-hash": "69bd64c867"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here as well

Timestamp: now,
BrokerName: BROKERNAME,
UserAgent: "Publisher",
CorrelationId: uuid.New().String(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my info - are guid not supported in Go? Looks like uuid is more universal with 128-bit but wondering if that is needed. Could maybe save us from importing a package ....

@@ -69,58 +75,57 @@ func main() {
time.Sleep(300 * time.Hour)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configurable? In case we need to adjust intervals in the future

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch will add a forever loop

log.Printf("total time it took %v", end_time.Sub(start_time))

fmt.Println("Sleep starting now: ", time.Now())
time.Sleep(15*time.Minute);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configurable? Not sure if this 15 minute or the 5 minute inside main() actually toggles the interval simulating GK audit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants